import request from '@/utils/request'

// 查询安心签经办人列表
export function listTransactor(query) {
  return request({
    url: '/base/transactor/list',
    method: 'get',
    params: query
  })
}

// 查询安心签经办人详细
export function getTransactor(id) {
  return request({
    url: '/base/transactor/' + id,
    method: 'get'
  })
}

// 新增安心签经办人
export function addTransactor(data) {
  return request({
    url: '/base/transactor',
    method: 'post',
    data: data
  })
}

// 修改安心签经办人
export function updateTransactor(data) {
  return request({
    url: '/base/transactor',
    method: 'put',
    data: data
  })
}

// 删除安心签经办人
export function delTransactor(id) {
  return request({
    url: '/base/transactor/' + id,
    method: 'delete'
  })
}

// 导出安心签经办人
export function exportTransactor(query) {
  return request({
    url: '/base/transactor/export',
    method: 'get',
    params: query
  })
}